package charlie.demo.beetlsql.beetlsql_demo.extend.beetl;

import org.beetl.core.Context;
import org.beetl.core.Function;

import java.io.IOException;

public class Print implements Function {
        public String call(Object[] paras, Context ctx){
                Object o = paras[0];
                if (o != null){
                        try{
                                ctx.byteWriter.write(o.toString().getBytes());
                        }catch (IOException e){
                                throw new RuntimeException(e);
                        }
                }
                return "";
        }
}